<script src="/public/__STATIC__/lib/markdown/Parser.js"></script>
<article class="fa-article">
    <section class="fa-section">
        <div class="fa-box fa-main-article">
            <div class="fa-title">
                {$article.title}
            </div>
            <div class="fa-tags">
                <span><a>标签：</a></span>
                <span class="layui-breadcrumb" lay-separator="|">
                    {php}$tag_list = $article['tag_list'];{/php}
                    {empty name="tag_list"}
                        <a href="{:url('index/tags/index')}">暂无标签</a>
                    {/empty}
                    {volist name="tag_list" id="tag"}
                        <a href="{:url('index/tags/index',['tag_id'=>$tag['tag_id']])}">{$tag.name}</a>
                    {/volist}
                </span>
            </div>
            <div class="fa-content layui-markdown">{$article.content}</div>
            <hr class="layui-bg-blue">
            <div class="fa-foot">
                <span class="layui-badge layui-bg-blue">查看{$article.click}</span>
                <span class="layui-badge layui-bg-blue">评论{$article.reply}</span>
                <span class="layui-bg-blue fa-pull-right fa-post-time">发表于 {$article.create_time}</span>
            </div>
        </div>
    </section>
</article>
<script>
    var parser = new HyperDown();
    console.log($('.layui-markdown').text());

    $('.layui-markdown').html(parser.makeHtml($('.layui-markdown').text()));
</script>